<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/headMain.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<script type="text/javascript">
	function _submit(){
		$.post("${base}/group_saveOrUpdateGroup", 
			$('#formGroup').serialize(), 
			function(response) {
				//$("#_groupGrid").jqGrid('setGridParam',{url: '${base}/group_getList'}).trigger("reloadGrid");
				$("#addOrUpdateGroup").hide();
				if(response && response.success == true) {
					alert(response.msg);
				} else {
					alert(response.msg);
				}
		}, "json");
	}
</script>
		<form id="formGroup"> 
		用户组名称：	<input type="text" name="groupname"		class="required" minlength="2"/><br>
		描述：	<input type="text" name="groupdesc"		class="required" minlength="2"/><br>
			<input  type="button" value="提交" onclick="_submit();"/>
			<input  type="reset" value="重置" />
		</form>
